package ren.xuedao.dao;

import ren.xuedao.entity.Seckill;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * @author gx
 */
public interface SeckillDao {
    /**
     *
     * @param seckillId
     * @param killTime
     * @return
     */

    int reduceNumber(Long seckillId, Date killTime);

    Seckill queryById(Long seckillId);

    List<Seckill>  queryAll(int offset, int limit);
    void seckillByPeocedure(Map<String,Object> map);

}
